$OpenBSD: patch-m4_decoders_m4,v 1.3 2013/06/15 22:58:23 brad Exp $
--- m4/decoders.m4.orig	Wed May 29 08:33:05 2013
+++ m4/decoders.m4	Wed May 29 13:35:28 2013
@@ -342,7 +342,7 @@ AC_DEFUN([XINE_DECODER_PLUGINS], [
 			 [AC_CHECK_HEADERS([mpc/mpcdec.h], [have_external_libmpcdec=yes], [have_external_libmpcdec=no])],
 			 [AC_CHECK_LIB([mpcdec], [mpc_decoder_decode],
 				       [AC_CHECK_HEADERS([mpcdec/mpcdec.h], [have_external_libmpcdec=yes], [have_external_libmpcdec=no])],
-							 [have_external_libmpcdec=no])])
+							 [have_external_libmpcdec=no], [-lm])], [-lm])
             if test x"$have_external_libmpcdec" != x"yes"; then
                 AC_MSG_RESULT([*** no usable version of libmpcdec found, using internal copy ***])
             else
